package com.iflytek.day12._04_practice;

public class Demo {
  public static void main(String[] args) {
    // Animal ： 姓名，年龄，颜色
    // Cat :
    // Dog ：吼叫

    // 创建狗的对象
    Dog d = new Dog("旺财", 2, "黑色", "嗷呜~~");
    System.out.println(d.getName() + ", " + d.getAge() + ", " + d.getColor() + ", " + d.getWang());

    // 创建猫的对象
    Cat c = new Cat("中华田园猫", 3, "黄色");
    System.out.println(c.getName() + ", " + c.getAge() + ", " + c.getColor());
  }
}
